<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8"/>
    <title>Title</title>
</head>
<body>
<button onclick="btnClick()">点我发送消息</button>
<br/>
获得海南消息：
<textarea id="area" style="width:300px;height:500px;">


</textarea>

<script th:src="@{/js/jquery-3.3.1.min.js}"></script>
<script th:src="@{/js/websocket1.js}"></script>

</body>
</html>